<%-- 
    Document   : ver_estudiantes
    Created on : 26/07/2013, 10:39:36 PM
    Author     : wbeimar
--%>

<%@page import="java.util.Iterator"%>
<%@page import="VO.estudiante"%>
<%@page import="java.util.ArrayList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<jsp:useBean id="Admin" class="DAO.Consulta"/>
<!DOCTYPE html>
<html>
    <head>
        <jsp:include page="includes/head.jsp"></jsp:include>
        <title>Ver Administrativos | Aplicativo Colegio</title>
        <SCRIPT>

function valid(input) {
    //alert("You have changed the value from 10 to " + input);
    
    window.location.href="ver_estudiantes.jsp?grupo="+input;
    
}

</SCRIPT>
    </head>
    <body>
         <jsp:include page="includes/nav_bar.jsp"></jsp:include>
     
         
         <div class="well well-small">
             <div class="row"><a href="index.jsp"><img src="img/volver.png" class="span1" /></a>
                 <h1 class="span7">Listado de Administradores</h1>
             </div>
             <a href="registrar_administrativo.jsp" class="btn btn-success">Nuevo Administrador</a>
             
             
             <!--<FORM>

                <select onChange="valid(this.value)">
                <option value ="0">Elige Grupo</option>
                <option value ="1">1A</option>
                <option value ="2">1B</option>
                <option value ="3">1C</option>
                <option value ="4">2A</option>
                </select>

            </FORM>-->
    
         </div>
 
         
         
         <div class="table span10">
             <table class="table-bordered table-condensed span12">
            <%
               
                // out.print(Admin.Listar_Admins());
                out.print(Admin.ListarGeneral("administrativo", "id_administrativo,(primer_nombre_administrativo || ' ' || segundo_nombre_administrativo) as Nombres,(primer_apellido_administrativo ||  ' ' ||segundo_apellido_administrativo )   as Apellidos,sexo_administrativo as sexo,documento_administrativo as Documento, telefono_administrativo as Telefono ,fecha_nacimiento_administrativo as Fecha_Nacimiento", " '1' order by id_administrativo ASC", "tabla"));
            %>
             </table>
         </div>
     
    </body>
</html>
